<h3>L O G - <?php echo $kullanici->ad." ".$kullanici->soyad; ?></h3>

<?php
echo "<table border=1 cellpadding=0 cellspacing=0 STYLE='border-collapse: collapse;'>";
echo "<tr bgcolor='gray'>";
echo "<td>NO";;
echo "</td>";
echo "<td>Tarih Saat";;
echo "</td>";
echo "<td>Süre";
echo "</td>";
echo "<td>Controller";
echo "</td>";
echo "<td>Action";
echo "</td>";
echo "<td>GET";
echo "</td>";
echo "<td>POST";
echo "</td>";
echo "</tr>";
for($i=0;$i<count($logs);$i++){
	$sure=0;
	if($i!=count($logs)-1){
		$sure = $logs[$i+1]->tarih -$logs[$i]->tarih;
	}
	$cizgi='';
	if($sure>=3000)
		$cizgi = "STYLE='border-bottom:5px double red;'";
	echo "<tr $cizgi>";
	echo "<td>".($i+1);
	echo "</td>";
	echo "<td>";
	echo Araclar::tarihSaatToStr($logs[$i]->tarih);
	echo "</td>";
	echo "<td>";
	if($sure<3000)
		echo $sure;
	echo "</td>";
	echo "<td>";
	echo $logs[$i]->controller;
	echo "</td>";
	echo "<td>";
	echo $logs[$i]->action;
	echo "</td>";
	echo "<td>";
	echo bol($logs[$i]->get);
	echo "</td>";
	echo "<td>";
	echo bol($logs[$i]->post);
	echo "</td>";
	echo "</tr>";
}
echo "</table>";
function kisalt($s){
	$geri="";
	for($i=0;$i<strlen($s);$i++){
		$geri.=$s[$i];
		if($i%50==0 && $i>0){
			$geri.='<br />';
		}
	}
	return $geri;
}
function bol($s){
	if(empty($s)) return "";
	$ss = explode('|',$s);
	//Araclar::trace($ss);
	$t='';
	for($i=0;$i<count($ss);$i++){
		$t.=kisalt($ss[$i])."<br />";
	}
	return $t;
}
?>
